﻿namespace MyTRCP.Common.Models
{
    public class NotificationReceivedEventArgs : EventArgs
    {
        public NotificationEventTypeEnum Type { get; private set; }
        public byte[] Data { get; private set; }
        public NotificationReceivedEventArgs(byte[] data) : base()
        {
            Type = (NotificationEventTypeEnum)data[0];
            Data = new byte[data.Length - 1];
            Array.Copy(data, 1, Data, 0, Data.Length);
        }
    }
}